import request from '@/utils/request'

// 查询班组类型列表
export function listGroupType(query) {
  return request({
    url: '/yyj/pbs/groupType/list',
    method: 'get',
    params: query
  })
}

export function allGroupType(query) {
  return request({
    url: '/yyj/pbs/groupType/all',
    method: 'get',
    params: query
  })
}

// 查询班组类型详细
export function getGroupType(groupCode) {
  return request({
    url: '/yyj/pbs/groupType/' + groupCode,
    method: 'get'
  })
}

// 新增班组类型
export function addGroupType(data) {
  return request({
    url: '/yyj/pbs/groupType',
    method: 'post',
    data: data
  })
}

// 修改班组类型
export function updateGroupType(data) {
  return request({
    url: '/yyj/pbs/groupType',
    method: 'put',
    data: data
  })
}

// 删除班组类型
export function delGroupType(groupCode) {
  return request({
    url: '/yyj/pbs/groupType/' + groupCode,
    method: 'delete'
  })
}
